package com.lvbaoins.Harmony.system.controller;

import com.lvbaoins.Harmony.core.reqres.response.ResponseData;
import com.lvbaoins.Harmony.system.domain.InsCity;
import com.lvbaoins.Harmony.system.service.InsCityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 地理位置
 *
 * @author gjb
 * @Date 2020-08-14 14:29:23
 */
@Controller
@RequestMapping("/insCity")
public class InsCityController {


    @Autowired
    private InsCityService insCityService;

    /**
     * 分页加载省级
     * @param page
     * @param limit
     * @return
     */
    @ResponseBody
    @RequestMapping("/loadProvince")
    public ResponseData loadPrivince(Integer page, Integer limit){
        InsCity insCity = new InsCity();
        insCity.setProvinceGbCode(0);
        return ResponseData.success(insCityService.pageList(page, limit, insCity));
    }
}
